/* 全局样式 */
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background: #f8f9fa;
  color: #333;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* 导航栏 */
.navbar {
  background: white;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}
.navbar h1 {
  font-size: 1.5rem;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}
.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

/* 英雄区域 */
.hero {
  padding: 6rem 0;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}
.hero .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}
.hero-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #555;
}
.buttons {
  display: flex;
  gap: 1rem;
}
.btn {
  padding: 0.6rem 1.2rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}
.btn.primary {
  background-color: #1976d2;
  color: white;
}
.btn.outline {
  border: 2px solid #1976d2;
  color: #1976d2;
}
.btn:hover {
  opacity: 0.9;
}
.hero-image img {
  width: 100%;
  max-width: 400px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 关于我 */
.about h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
}
.about p {
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* 项目展示 */
.projects h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}
.project-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.project-card {
  background: white;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}
.project-card:hover {
  transform: translateY(-5px);
}
.project-card h4 {
  margin-top: 0;
}
.tags {
  margin-top: 0.5rem;
}
.tags span {
  display: inline-block;
  background: #1976d2;
  color: white;
  font-size: 0.8rem;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

/* 页脚 */
.footer {
  background: white;
  padding: 2rem 0;
  border-top: 1px solid #eee;
}
.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.footer p {
  margin: 0;
}
.socials a {
  margin-left: 1rem;
  text-decoration: none;
  color: #1976d2;
}
@media (max-width: 600px) {
  .footer .container {
    flex-direction: column;
    text-align: center;
  }
  .socials {
    margin-top: 1rem;
  }
}